<?php
declare (strict_types = 1);

namespace app\admin\controller;

use app\BaseController;
use think\facade\Db;
use think\facade\Request;
use think\facade\View;

class Brand extends BaseController
{
    public function brand()
    {

        $brand_name = Request::get('brand_name','','trim,htmlspecialchars,strip_tags');
        $recom = Request::get('recom','200','trim,htmlspecialchars,strip_tags');
        $show = Request::get('show',[],'trim,htmlspecialchars,strip_tags');
        $brand_logo = Request::get('brand_logo',[],'trim,htmlspecialchars,strip_tags');
        $data=[
           'brand_name'=>$brand_name,
            'recom'  =>$recom,
            'show'   =>$show,
            'brand_logo'=>$brand_logo,
        ];
        $list = \app\admin\model\Brand::pai($data,input('get.'));

            View::assign('list', $list);

        View::assign($data);

        return  View::fetch();
    }

}